package com.yy.web.pm.patrol.mapper;

import com.yy.web.pm.patrol.domain.PeoplePatrol;
import com.yy.web.pm.patrol.dto.BIllboardRemoveDto;
import com.yy.web.pm.patrol.dto.PatroDto;
import com.yy.web.pm.patrol.dto.PatroLMessage;
import com.yy.web.pm.patrol.dto.PatrolDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PeoplePatrolMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(PeoplePatrol record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(PeoplePatrol record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    PeoplePatrol selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(PeoplePatrol record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(PeoplePatrol record);

    List<PeoplePatrol> selectListAll(PeoplePatrol patrol);

    List<PatroDto> selectShowList(PatroDto patrol, @Param("userId") Long userId);

    List<PatroDto> SelectUrgent(PatroDto patrol, @Param("id") Long id);

    List<PatroDto> selectPatrolList(PatrolDto patrolDto);

    List<PeoplePatrol> selectAlarmList(PeoplePatrol patrol);

    List<PatroLMessage> selectPatrolMessage(PatroLMessage patrol);

    BIllboardRemoveDto selectRemoveInfo(@Param("shopId") String shopId);
}
